<template>
  <div>
    <h2>TsInfo</h2>
    name <input type="text" :value="name" @input="$emit('update:name', $event.target.value)">

    <br>

    age <input type="text" :value="age" @input="$emit('update:age', $event.target.value)">

    <br>

    city
    <select name="" id=""></select>

    <br>

    hobby
    <input type="checkbox" value="css"> CSS

    gender

    <input type="radio" value="1" /> 男
  </div>
</template>
<script>
export default {
  props: ['name', 'age']
};
</script>